package cn.xn.hrms.api.dto.req;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * @author ysz
 */
@Data
public class PersonalReqDTO {
    @NotBlank(message = "姓名必填")
    private String name;
    @NotNull(message = "性别必填")
    private Integer gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    private String phone;
    private String email;
    private String identity;
    private String education;
    private String school;
    private String imgUrl;
    private Integer workStatus;
    @NotNull(message = "部门必选")
    private Integer departmentId;
    @NotNull(message = "岗位必选")
    private Integer positionId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginDate;
}
